package cn.com.haopy.yue.ai.db.entity.arisk;

import cn.com.haopy.yue.ai.db.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.ibatis.type.JdbcType;

import java.math.BigDecimal;

/**
 * @Description: TODO
 * @Author DuTao
 * @Date 2025/3/26 9:05
 */
@Data
@TableName(value = "arisk_standard_calculate_item", autoResultMap = true)
@ApiModel(value = "收费标准-计算公式")
public class AIRiskStandardCalculateItem extends BaseEntity {

    @ApiModelProperty(value = "计算ID")
    @TableField(value = "cu_id", jdbcType = JdbcType.INTEGER)
    private Integer cuId;

    @ApiModelProperty(value = "下限")
    @TableField(value = "lower_limit", jdbcType = JdbcType.DECIMAL)
    private BigDecimal lowerLimit;

    @ApiModelProperty(value = "上限")
    @TableField(value = "upper_limit", jdbcType = JdbcType.DECIMAL)
    private BigDecimal upperLimit;

    @ApiModelProperty(value = "基率计算类型，0： %（百分比），1：‰（千分比），2：固定值，3区间：[100-200]")
    @TableField(value = "type", jdbcType = JdbcType.SMALLINT)
    private Short type;

    @ApiModelProperty(value = "固定值")
    @TableField(value = "fix_num", jdbcType = JdbcType.DECIMAL)
    private BigDecimal fixNum;

    @ApiModelProperty(value = "区间下限")
    @TableField(value = "lower_area", jdbcType = JdbcType.DECIMAL)
    private BigDecimal lowerArea;


    @ApiModelProperty(value = "区间上限")
    @TableField(value = "upper_area", jdbcType = JdbcType.DECIMAL)
    private BigDecimal upperArea;

    @ApiModelProperty(value = "排序")
    @TableField(value = "sort_index", jdbcType = JdbcType.INTEGER)
    private Integer sortIndex;


}
